package yass.drawcard.utils;


import android.text.TextUtils;

import com.core.app.Latte;
import com.core.utils.dbtutil.PrefUtils;


/**
 * UI工具类
 */
public class ShanHaiUtil {

    // 获取服务器ip
    public static String getHttpid(String midpath) {

        if("videolist".equals(midpath)){
            return "https://qndc.wxyass.com/";
        }else{
            // 获取链接的头部 默认PC
            return PrefUtils.getString(Latte.getApplicationContext(), "httpservice", "");
        }
    }

    // 获取服务器ip
    public static String getHttpid() {
        // 获取链接的头部 默认PC
        return PrefUtils.getString(Latte.getApplicationContext(), "httpservice", "");
    }

    // 设置服务器ip
    public static void putHttpid(String httpservice) {
        // 获取链接的头部 默认PC
        PrefUtils.putString(Latte.getApplicationContext(), "httpservice", httpservice);
    }

}
